<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title th:text="${userModel.title}">iclyj</title>
</head>
<body>
<div th:include="fragments/header :: header">...</div>
<h3 th:text="${userModel.title}">Welcome to iclyj.cn</h3>
<div>
    <a href="/users">创建用户</a>
</div>
<br>
<form action="/users" th:action=@{/users} method="POST" th:object="${userModel.user}">
    <input type="hidden" name="id" th:value="*{id}">
    姓名:<br>
    <input type="text" name="name" th:value="*{name}">
    <br>
    年龄:<br>
    <input type="text" name="age" th:value="*{age}">
    <input type="submit" value="提交">
</form>
<div th:include="fragments/footer :: footer">...</div>
</body>
</html>
